package com.example.file.service.Impl;

import com.example.file.entity.SysDict;
import com.example.file.mapper.SysDictMapper;
import com.example.file.service.SysDictService;
import com.example.file.service.SysFileInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class SysDictServiceImpl  implements SysDictService {

    @Value("${ipaddress}")
    private String ipaddress;
    @Autowired
    private SysDictMapper sysDictMapper;

    @Override
    public SysDict insertIp(Long id) {

        SysDict sysDict = new SysDict();
        sysDict.setId(Long.valueOf(ipaddress));
        sysDictMapper.insert(sysDict);


        return sysDict;
    }
}
